package com.gopay.common.constants.bank;

/**
 * 浦发代扣开户行枚举
 * @author ShenJun
 *
 */
public enum SpdbAdpayBankInfoEnum {
	NOSUPPORT("NOSUPPORT","000000000000","不支持该银行"),
	ICBC(BankConstants.BANK_LOGO_ICBC,"102100099996","中国工商银行"),
	ABC(BankConstants.BANK_LOGO_ABC,"103100000026","中国农业银行"),
	BOC(BankConstants.BANK_LOGO_BOC,"104100000004","中国银行"),
	CCB(BankConstants.BANK_LOGO_CCB,"105100000017","中国建设银行"),
	BOCOM(BankConstants.BANK_LOGO_BOCOM,"301290000007","交通银行"),
	CITIC(BankConstants.BANK_LOGO_CITIC,"302100011000","中信银行"),
	CEB(BankConstants.BANK_LOGO_CEB,"303100000006","光大银行"),
	CMBC(BankConstants.BANK_LOGO_CMBC,"305100000013","民生银行"),
	GDB(BankConstants.BANK_LOGO_GDB,"306581000003","广发银行"),
	PAB(BankConstants.BANK_LOGO_PAB,"307584007998","平安银行"),
	CMB(BankConstants.BANK_LOGO_CMB,"308584000013","招商银行"),
	CIB(BankConstants.BANK_LOGO_CIB,"309391000011","兴业银行"),
	BOS(BankConstants.BANK_LOGO_BOS,"313290000017","上海银行"),
	SPDB(BankConstants.BANK_LOGO_SPDB,"310290000013","上海浦东发展银行"),
	PSBC(BankConstants.BANK_LOGO_PSBC,"403100000004","邮储银行");
	
	SpdbAdpayBankInfoEnum(String bankCode, String bankNo, String bankName){
		this.bankCode = bankCode;
		this.bankName = bankName;
		this.bankNo = bankNo;
	}

	/** 银行编号  */
	private String bankCode;
	/** 开户行行名  */
	private String bankName;
	/** 开户行行名  */
	private String bankNo;
	public String getBankCode() {
		return bankCode;
	}
	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}
	public String getBankName() {
		return bankName;
	}
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	public String getBankNo() {
		return bankNo;
	}
	public void setBankNo(String bankNo) {
		this.bankNo = bankNo;
	}
	
	public static SpdbAdpayBankInfoEnum getBankInfoByBankCode(String bankCode){
		SpdbAdpayBankInfoEnum[] array = SpdbAdpayBankInfoEnum.values();
		for (int i = 0; i < array.length; i++) {
			if(array[i].bankCode.equals(bankCode)){
				return array[i];
			}
		}
		return SpdbAdpayBankInfoEnum.NOSUPPORT;
	}
	
}
